﻿<%@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="html_News_News, App_Web_ssaae4ts" title="" %>

<%@ Register Src="Controls/NewsUC.ascx" TagName="NewsUC" TagPrefix="uc2" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="javascript" type="text/javascript">

window.onload=window.onresize=function(){
if(document.getElementById("mainbody").clientHeight>document.getElementById("sidebar").clientHeight){
document.getElementById("sidebar").style.height=document.getElementById("mainbody").offsetHeight+"px";

}
else{
document.getElementById("mainbody").style.height=document.getElementById("sidebar").offsetHeight+"px";

}
}
    </script>

    <div id="PageBody">
        <div id="sidebar">
            <div class="Navtop">
                <h3>
                    : : 新闻中心 : :
                </h3>
            </div>
            <div style="background-position: center center; background-image: url(SiteFile/Template/release2010/Images/thumb-06.jpg);
                background-color: transparent;">
                <br />
                <br />
                <br />
                <br />
            </div>
            <div class="CompanyList">
                &nbsp;</div>
            <div style="">
                <uc2:NewsUC ID="NewsUC1" runat="server" />
            </div>
        </div>
        <div id="mainbody">
            <div class="mtop">
                <h3>
                    <a href="/">首页</a>&nbsp;>><asp:HyperLink ID="lnkNav" runat="server">HyperLink</asp:HyperLink>
                    &nbsp;</h3>
            </div>
            <div class="page" id="MainContent">
                <%-- <div class="news">--%>
                <asp:DataList ID="dtlstNewsItems" runat="server" Width="100%" CellPadding="4" BorderColor="#CCCCCC"
                    BorderStyle="None" BorderWidth="0px" ForeColor="Black" GridLines="Horizontal">
                    <HeaderTemplate>
                        <table width="100%">
                            <tr>
                                <%--<th style="text-align: left">
                                        &nbsp;&nbsp; 新闻标题
                                    </th>
                                    <th style="text-align: right">
                                        发布日期&nbsp;&nbsp;
                                    </th>--%>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <a href='ArticleShow.aspx?id=<%#Eval("id")%>' id="showid" target="_blank">
                                    <img src="SiteFile/Template/release2010/Images/gif6.gif" alt="" />
                                    <%#Eval("Title") %>
                                </a>
                            </td>
                            <td align="right">
                                [<%#Eval("AddTime","{0:yyyy-MM-dd}") %>]
                            </td>
                        </tr>
                        <tr>
                            <td height="1" colspan="2" background="SiteFile/Template/release2010/Images/d.gif">
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:DataList>
                <%--  </div>--%>
                <div style="text-align: right">
                    <asp:Label ID="Label12" runat="server" Font-Size="9pt" Text="当前页为"></asp:Label>[
                    <asp:Label ID="lblCurPgIndex" runat="server" Font-Size="9pt">1</asp:Label>
                    ]
                    <asp:LinkButton ID="lnkbtnFirst" runat="server" Font-Size="9pt" Font-Underline="False"
                        ForeColor="Red" OnClick="lnkbtnFirst_Click">第一页</asp:LinkButton>
                    <asp:LinkButton ID="lnkbtnUp" runat="server" Font-Size="9pt" Font-Underline="False"
                        ForeColor="Red" OnClick="lnkbtnUp_Click">上一页</asp:LinkButton>&nbsp;
                    <asp:LinkButton ID="lnkbtnNext" runat="server" Font-Size="9pt" Font-Underline="False"
                        ForeColor="Red" OnClick="lnkbtnNext_Click">下一页</asp:LinkButton>
                    <asp:LinkButton ID="lnkbtnLast" runat="server" Font-Size="9pt" Font-Underline="False"
                        ForeColor="Red">最后一页</asp:LinkButton>
                    <asp:Label ID="Lablel14" runat="server" Font-Size="9pt" Text="总页数"></asp:Label>
                    [
                    <asp:Label ID="lblPgTotal" runat="server" Font-Size="9pt"></asp:Label>]
                </div>
            </div>
        </div>
    </div>
</asp:Content>
